home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgramD2.iso
/
Borland
/
Borland C++ V5.02
/
PAINT.PAK
/
DIBATTR.H
< prev
next >
Wrap
C/C++ Source or Header
|
1997-05-06
|
937b
|
35 lines
//----------------------------------------------------------------------------
// ObjectWindows
// Copyright (c) 1991, 1995 by Borland International, All Rights Reserved
//
// Example paint program dib attribute dialog
//----------------------------------------------------------------------------
#if !defined(DIBATTR_H)
#define DIBATTR_H
#include <owl/dialog.h>
class TDibAttrDialog : public TDialog {
public:
TDibAttrDialog(TWindow* parent, int& width, int& height, uint32& colors,
TModule* module = 0);
private:
void SetupWindow();
bool CanClose();
void Bn2Color() {Colors = 2;}
void Bn16Color() {Colors = 16;}
void Bn256Color() {Colors = 256;}
void BnHiColor() {Colors = 65536L;}
void BnTrueColor() {Colors = 16777216L;}
int& Width;
int& Height;
uint32& Colors;
DECLARE_RESPONSE_TABLE(TDibAttrDialog);
};
#endif